package com.yanqu.road.entity.log.cross.stronghold;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;

@FieldTypeAnnotation(tableName = "t_l_ck_stronghold_box", desc = "商会据点战野外据点宝箱日志", autoSave = true, uploadCk = true, isCross = true)
public class LogStrongholdBox extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动id", isIndex = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "事件id")
    private int eventId;
    @FieldTypeAnnotation(desc = "宝箱类型， 0 金 1银 2铜")
    private int boxType;
    @FieldTypeAnnotation(desc = "宝箱id")
    private int boxId;
    @FieldTypeAnnotation(desc = "获得0 失去1")
    private int isGet;
    @FieldTypeAnnotation(desc = "获得途径")
    private int getWay;
    @FieldTypeAnnotation(desc = "据点名称")
    private String wildName;

    public LogStrongholdBox(int activityId, long userId, int eventId, int boxType, int boxId, int isGet, int getWay, String wildName) {
        this.activityId = activityId;
        this.userId = userId;
        this.eventId = eventId;
        this.boxType = boxType;
        this.boxId = boxId;
        this.isGet = isGet;
        this.getWay = getWay;
        this.wildName = wildName;
    }

    @Override
    public long getUserId() {
        return userId;
    }

}
